/*
 * @Author: your name
 * @Date: 2020-05-20 15:02:24
 * @LastEditTime: 2020-06-08 14:46:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \IM_Web\im_web\src\store\index.js
 */
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import mutations from './mutations'
import actions from './actions'
import state from './state.js'

const store = new Vuex.Store({
    // 内存数据状态，UI可通过this.$store.state.* 获得数据
    state,
    // 唯一拥有更改内存数据的接口，不可进行异步操作
    mutations,
    // 与mutation通讯，ui层写入内存数据的接口，可异步操作
    actions,
    plugins: []
})

export default store
